import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/model/inline_object4.dart';

InlineObject4 $InlineObject4FromJson(Map<String, dynamic> json) {
  final InlineObject4 inlineObject4 = InlineObject4();
  final List<int>? file = (json['file'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (file != null) {
    inlineObject4.file = file;
  }
  final String? lang = jsonConvert.convert<String>(json['lang']);
  if (lang != null) {
    inlineObject4.lang = lang;
  }
  return inlineObject4;
}

Map<String, dynamic> $InlineObject4ToJson(InlineObject4 entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['file'] = entity.file;
  data['lang'] = entity.lang;
  return data;
}

extension InlineObject4Extension on InlineObject4 {
  InlineObject4 copyWith({
    List<int>? file,
    String? lang,
  }) {
    return InlineObject4()
      ..file = file ?? this.file
      ..lang = lang ?? this.lang;
  }
}